{extend name="common/layout" /}
{block name="main"}
<div class="admin-main layui-anim layui-anim-upbit">

    <div class="padding30">
        <h3 class="page-box-title">{:lang('Order Audit')} </h3>  
        <div class="demoTable">
            <div class="layui-inline">
                <input class="layui-input layui-search-input" name="key" id="key" placeholder="{:lang('Please enter the contract number')}">
            </div>
            <button class="layui-btn layui-search-btn borderrad5" id="search" data-type="reload">{:lang('search')}</button>
           
            <div style="clear: both;"></div>
        </div>
    </div>
    <div class="" id="_listBox">
    <table class="layui-table" id="list" lay-filter="list"></table>
    </div>
</div>
{/block}
{block name="footer"}
<script type="text/javascript" id="_action">
     <a href="#" data-href="{:U('detail')}?item_id={{d.id}}" data-title="{:lang('Order Details')}" class="_layer-dialog" data-skin="iframe-content-white2">{:lang('Details')}
        
    </a>
</script>
<script type="text/javascript">
    layui.use('table', function() {
        var table = layui.table, $ = layui.jquery,layer = layui.layer,form = layui.form;
        var tableIn = table.render({
            elem: '#list'
            ,url: '{:url("")}',
            method:'post',
            page:getPageThume()
            ,cols: [[
                {checkbox: true, fixed: true},
                {field:'sn', title: "{:lang('Customer No.')}", width:"15%"},
                {field:'email', title: "{:lang('User Account')}", width:"15%"},
                {field:'title', title: "{:lang('Line Name')}", width:"15%"}
                ,{field:'typelabel', title: "{:lang('Order Type')}", width:"15%"}
                ,{field:'create_time', title: "{:lang('Operation Time')}", width:"18%"}
                ,{width:'10%',title: "", align:'right', toolbar: '#_action'}
            ]]
        });
        $('#search').on('click', function () {
            var key = $('#key').val();
            tableIn.reload({
                where: {key: key}
            });
        });
       
        
    })
</script>
{/block}